package com.tywj.terminalapp;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

//import com.facebook.drawee.backends.pipeline.Fresco;

/**
 * Created by taylorjoe on 17-11-15.
 */

public class App extends Application {
    private static Context sInstance;
    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        requestQueue = Volley.newRequestQueue(getApplicationContext());
    }

    public static Context getContext(){
        return sInstance;
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
    }

    private static RequestQueue requestQueue;


    public static RequestQueue getRequestQueue(){
        return requestQueue;
    }
}